/*
package com.usian.admin.job;

import com.usian.admin.feign.WmNewsFeign;
import com.usian.admin.service.WemediaNewsAutoScanService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Log4j2
public class WeMediaNewsAutoScanJob {

    @Autowired
    private WmNewsFeign wmNewsFeign;

    @Autowired
    private WemediaNewsAutoScanService wemediaNewsAutoScanService;

    @XxlJob("newScanJob")
    public ReturnT<String> scanJob(String param) {
        log.info("自媒体文章审核调度任务开始执行....");
        //1:查询要发布的文章列表
        List<Integer> list = wmNewsFeign.findRelease();
        for (Integer newId : list) {
            //2:调用文章审核的方法
            wemediaNewsAutoScanService.autoScanByMediaNewsId(newId);
        }
        log.info("自媒体文章审核调度任务执行结束....");
        return ReturnT.SUCCESS;
    }
}*/
